/*************************************************************************
	> File Name: longjmp.c
	> Author: Angel Criss
	> Mail: abbytsing@gmail.com 
	> Created Time: Sat 15 Mar 2014 03:29:18 PM CST
 ************************************************************************/
//this is a totaly wrong program
#include<setjmp.h>
#include<stdio.h>
static jmp_buf envi;
int setjump(jmp_buf envi)
{
    if(setjmp(envi)==-1)
    printf("this in setjmp\n");
}
void longjump(jmp_buf envi, int a)
{
    if(a=1)
    longjmp(envi,1);
        printf("this in longjmp\n");
}
main()
{
    setjump(envi);
    longjump(envi,1);
    return;
}

